/*
 * @Author: 詹真琦(legendryztachi@gmail.com)
 * @Date: 2021-11-03 10:27:19
 * @LastEditors: 詹真琦(legendryztachi@gmail.com)
 * @LastEditTime: 2021-12-29 17:21:38
 * @FilePath: \code\cwp-front\pc-collaboration\src\handles\handle-list\modules\redirect.js
 * @Description:
 */
function redirect(item) {
    window.open(_ctxPath + item.clickUrl);
}

export default (item) =>
    new Promise(async (resolve) => {
        redirect(item);
        resolve();
    });
